<%-- 
    Document   : customerinfomationcontent
    Created on : Oct 4, 2011, 12:08:07 PM
    Author     : Administrator
--%>

<%@page import="org.hibernate.Session"%>
<%@page import="hibernate.pojo.Khachhang"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Zing Deal | Thông tin khách hàng</title>
        <link href="DealZing_files/6aad5646.css" rel="stylesheet" type="text/css" />
    </head>
    <%
        try {
            Khachhang khachhang = (Khachhang) session.getAttribute("KhachHang");
            if (khachhang != null) {
                //String tinhTrangHonNhan = khachhang.getTinhTrangHonNhan();
    %>

    <body>
        <div class="BoxDealHot">
            <div class="BoxDealHotTop">
                <div class="BoxDealHotBottom ViDeal">                
                    <div class="Title"><h2 class="Num2"> <%=khachhang.getHoTen()%> </h2></div>                
                    <p style="height: 20px;"></p>
                    <ul id="tabHeader" class="JsTabA">
                        <li class="Active"><a href="customerinfocontroller?action=viewinfo" title="Tài khoản"><span>Tài khoản</span></a></li>
                        <li><a href="customerinfocontroller?action=listcomment" title="Danh sách thảo luận"><span>Danh sách thảo luận</span></a></li>
                        <li><a href="customerinfocontroller?action=dealsbought" title="Deal đã mua" class=""><span>Deal đã mua</span></a></li>
                        <li><a href="customerinfocontroller?action=shareforfriend" title="Bạn bè" class=""><span>Bạn bè</span></a></li>							
                        <!--
                        <li><a href="/tp-ho-chi-minh/user_points" title="Điểm thưởng" class="aAjax"><span>Điểm thưởng</span></a></li>
                        <li><a href="/tp-ho-chi-minh/user_point_gifts" title="Đổi quà" class="aAjax"><span>Đổi quà</span></a></li>
                        -->
                    </ul>
                    <div class="ViDealContent JsTabUserView">					
                        <form class="frmGiaoHang" enctype="multipart/form-data" id="UserProfileEditForm" method="post" action=""><fieldset style="display:none;"><input type="hidden" name="_method" value="POST" /><input type="hidden" name="data[_Token][key]" value="9377ac733e255ab705e10fac0e866a374553cc9a" id="Token140257054" /></fieldset>
                            <div class="ThongTinCaNhan">
                                <h4>
                                    <span style="display:inline-block;float:left;">Thông tin cá nhân</span>
                                    <a href="customerinfocontroller?action=viewinfo"><img src="DealZing_files/update00.gif" style="float:left;margin:-4px 0 0 5px;" alt="" /></a><span style="clear:both;">&nbsp;</span>
                                </h4>
                                <div class="NoiDungThongTin">												
                                    <ul class="GoiHang">
                                        <li>
                                            <p>
                                                <label class="Reg Reginput">Tài khoản</label>
                                                <strong><input name="data[User][username]" type="text" readonly="readonly" class="Disable" maxlength="255" value="<%=khachhang.getTaiKhoan()%>" id="UserUsername" /> </strong> 
                                                <a href="changepasscontroller?action=changepassword" target="_blank"><img src="DealZing_files/btn-doi-.gif" class="BtnMK" alt="" /></a>
                                                <a href="updatingcustomerinfocontroller?action=updatingaccount" target="_blank"><img src="DealZing_files/btn-doi0.gif" class="BtnMK" alt="" /></a>
                                            </p>							
                                        </li>
                                        <li>
                                            <p>
                                                <label class="Reg Reginput">Email</label>
                                                <input name="data[User][email]" type="text" readonly="readonly" class="Disable" maxlength="255" value="<%=khachhang.getEmail()%>" id="UserEmail" />
                                            </p>

                                        </li>				
                                        <li>
                                            <p>
                                                <label class="Reg Reginput">Tên</label>
                                                <input name="data[UserProfile][first_name]" type="text" readonly="readonly" class="Disable" maxlength="100" value="<%=khachhang.getHoTen()%>" id="UserProfileFirstName" />					
                                            </p>					
                                        </li>			   
                                        <li>				  
                                            <p>
                                                <label class="Reg">Giới Tính </label>
                                                <input name="data[UserProfile][sextext]" type="text" readonly="readonly" class="Disable" value="<%=khachhang.getGioiTinh()%>" id="UserProfileSextext" />										
                                            </p>
                                        </li>
                                        <li>				  
                                            <p>
                                                <label class="Reg">Ngày sinh </label>
                                                <input name="data[UserProfile][dobtext]" type="text" readonly="readonly" class="Disable" value="<%=khachhang.getNgaySinh()%>" id="UserProfileDobtext" />
                                            </p>
                                        </li>
                                        <li>				  
                                            <p>
                                                <label class="Reg">Số di động </label>
                                                <input name="data[UserProfile][phonenumber]" type="text" readonly="readonly" class="Disable" maxlength="30" value="<%=khachhang.getSoDienThoai()%>" id="UserProfilePhonenumber" />											
                                            </p>
                                        </li>
                                        <li>
                                            <p class="NoteDiDong">Mã mua hàng sẽ được gửi tới số di động, vui lòng gõ số chính xác<br />Lưu ý: Tổng đài 6069 chỉ có thể chuyển mã mua hàng tới các số điện thoại của các nhà cung cấp Mobi - Vina - Viettel</p>
                                        </li>
                                        <li>				  
                                            <p>
                                                <label class="Reg">Địa chỉ </label>
                                                <input name="data[UserProfile][address]" type="text" readonly="readonly" class="Disable" maxlength="500" value="<%=khachhang.getDiaChi()%>" id="UserProfileAddress" />											
                                            </p>
                                        </li>
                                        <li>				  
                                            <p>
                                                <label class="Reg">Thành phố </label>
                                                <input name="data[UserProfile][citytext]" type="text" readonly="readonly" class="Disable" value="<%=khachhang.getThanhPho()%>" id="UserProfileCitytext" />											
                                            </p>
                                        </li>
                                        <li>				  
                                            <p>
                                                <label class="Reg">Tình trạng hôn nhân </label>
                                                <select name="data[UserProfile][marriage]" id="UserProfileMarriage">
                                                    <option value="<%=khachhang.getTinhTrangHonNhan()%>"><%=khachhang.getTinhTrangHonNhan()%></option>
                                                    <option value="Đã kết hôn">Đã kết hôn</option>
                                                    <option value="Chưa kết hôn">Chưa kết hôn</option>
                                                </select>											
                                            </p>
                                        </li>
                                        <li>				  
                                            <p>
                                                <label class="Reg">Nghề nghiệp </label>
                                                <input name="data[UserProfile][job]" type="text" maxlength="100" value="<%=khachhang.getNgheNghiep()%>" id="UserProfileJob" />											
                                            </p>
                                        </li>
                                        <li class="hide">				  
                                            <p>
                                                <label class="Reg">Hình đại diện </label>
                                                <input type="file" name="uploadAvatar" size="33" class="browse-field" value="" id="UserAvatarFilename" />											
                                            </p>
                                        </li>  
                                    </ul>		
                                </div>			 
                            </div>
                            <div class="ThongTinCaNhan">
                                <h4>Thông tin chứng thực</h4>
                                <div class="NoiDungThongTin">								
                                    <ul class="GoiHang">
                                        <li>
                                            <p>
                                                <label class="Reg">CMND </label>
                                                <input type="text" id="UFCMND" maxlength="10" value="<%=khachhang.getCmnd()%>" class="Disable" disabled="disabled" name="UFCMND" />
                                            </p>                     
                                        </li>
                                        <li>
                                            <p>
                                                <label class="Reg">Ngày cấp </label>
                                                <input name="data[UserProfile][issuedatetext]" type="text" readonly="readonly" class="Disable" value="<%=khachhang.getNgayCap()%>" id="UserProfileIssuedatetext" /></p>
                                        </li>
                                        <li>
                                            <p>
                                                <label class="Reg">Nơi cấp </label>
                                                <input name="data[UserProfile][issueplacetext]" type="text" readonly="readonly" class="Disable" value="<%=khachhang.getNoiCap()%>" id="UserProfileIssueplacetext" />										</p>                     
                                        </li>				
                                    </ul>

                                </div>
                            </div>							
                            <div class="ThongTinCaNhan">
                                <h4>Khác</h4>
                                <div class="NoiDungThongTin">
                                    <ul class="GoiHang">
                                        <li>
                                            <p>
                                                <label class="Reg">Email dự phòng </label>
                                                <input name="data[User][email2]" type="text" maxlength="255" value="<%=khachhang.getEmailDuPhong()%>" id="UserEmail2" /></p>                     
                                        </li>
                                        <li>
                                            <p>
                                                <label class="Reg"> </label>
                                                <input type="hidden" name="data[User][is_send_email2]" id="UserIsSendEmail2_" value="0" /><input type="checkbox" name="data[User][is_send_email2]" class="Opt" value="1" id="UserIsSendEmail2" />											Chọn vào đây để gửi phiếu mua hàng đến email dự phòng										</p>                     
                                        </li>
                                        <li>
                                            <p>
                                                <label class="Reg"> </label>
                                                <input type="hidden" name="data[UserProfile][is_send_sms]" id="UserProfileIsSendSms_" value="0" /><input type="checkbox" name="data[UserProfile][is_send_sms]" class="Opt" value="1" id="UserProfileIsSendSms" checked="checked" />											Recieve SMS from Zing Deal										</p>                     
                                        </li>
                                        <li>
                                            <p>
                                                <label class="Reg"> </label>
                                                <input type="hidden" name="data[UserProfile][is_remind_sms]" id="UserProfileIsRemindSms_" value="0" /><input type="checkbox" name="data[UserProfile][is_remind_sms]" class="Opt" value="1" id="UserProfileIsRemindSms" checked="checked" />											Recieve SMS remind from Zing Deal										</p>                     
                                        </li>
                                        <li>
                                            <p>
                                                <label class="Reg"> </label>
                                                <!--<div class="submit"><input type="submit" class="BtnCapNhap" value=" " style="background:url(DealZing_files/btn-capnhat.gif) no-repeat;" /></div>
                                                -->
                                            </p>
                                        </li>
                                    </ul>			  
                                </div>
                            </div>			  
                            <fieldset style="display:none;"><input type="hidden" name="data[_Token][fields]" value="e1ea1827c520e46456b204ef38d6ba70c38e9254%3An%3A0%3A%7B%7D" id="TokenFields1721396282" /></fieldset></form> 
                    </div>

                    <div class="JsResponse"></div>
                </div>
            </div>					
        </div>
        <%
                }
            } catch (Exception ex) {
                out.print(ex);
            }
        %>
    </body>
</html>
